#!/usr/bin/env python3
# encoding: utf-8
"""
@author: kevin
@contact: evil365@gmail.com
@project : flask
@file: errorCode.py
@time: 2020/8/5 11:20
@license: (C) Copyright 2019-2025, Corporation Limited.
@desc:
"""
from lin.exception import APIException


class ProductNotFound(APIException):
    code = 404
    msg = '没有找到该产品'
    error_code = 9001


class ProductAllExist(APIException):
    code = 401
    msg = '已存在相同的产品'
    error_code = 9002


class PosionNotFound(APIException):
    code = 404
    msg = '产品无有效仓位'
    error_code = 9005


class PosionAllExist(APIException):
    code = 401
    msg = '产品相关用户仓位已存在'
    error_code = 9006


class RepayNotFound(APIException):
    code = 404
    msg = '未找到该产品还款计划'
    error_code = 9007


class RepayAllFound(APIException):
    code = 401
    msg = '该产品已存在相同的还款计划'
    error_code = 9008


class ProdictInfoNotFound(APIException):
    code = 404
    msg = '未找到该产品详细信息'
    error_code = 9007


class ProdictInfoAllFound(APIException):
    code = 401
    msg = '该产品已存在相同的产品信息计划'
    error_code = 9008


class ProdictMandatorNotFound(APIException):
    code = 404
    msg = '未找到该产品详细信息'
    error_code = 9009


class ProdictMandatorAllFound(APIException):
    code = 401
    msg = '该产品已存在相同的产品信息计划'
    error_code = 9010


class ProdictBrokerNotFound(APIException):
    code = 404
    msg = '未找到该产品详细信息'
    error_code = 9011


class ProdictBrokerAllFound(APIException):
    code = 401
    msg = '该产品已存在相同的产品信息计划'
    error_code = 9012